<!DOCTYPE HTML>
<html>
  <head>
    <title><?php echo SITE_NAME; ?> | 团购导航网站大全</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="keywords" content=" 团购, 导航, 拉手, 美团, <?php echo SITE_NAME; ?>">
    <meta name="description" content="中国最精准全面又实惠的团购导航网站">
    <link rel="shortcut icon" href="<?php echo base_url(); ?>code/images/icon.ico" />
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>code/ttz.css" media="screen">
    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>code/cupertino/jquery-ui-1.8.10.custom.css" media="screen">
    <script type="text/javascript" src="<?php echo base_url(); ?>code/jquery-1.5.1.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>code/jquery-ui.js"></script>
    <script type="text/javascript" src="<?php echo base_url(); ?>code/ttz.js"></script>
  </head>
  <body>
	<div id="wrapper">
		<?php require(dirname(dirname(__FILE__)).'/head.php'); ?>

		<div id="dashboard" class="box wrap">
		    <div id="settings-top">
		        <h2>提交团购网站</h2>
		        <div class="clear"></div>
		    </div><!-- end #dashboard-top -->
		    <div id="dashboard-body">
	<?php
$site_name = array(
	'name'	=> 'site_name',
	'id'	=> 'site_name',
	'size'	=> 300,
	'value' => ''
);

$site_url = array(
	'name'	=> 'site_url',
	'id'	=> 'site_url',
	'size'	=> 300,
	'value' => ''
);

$xml_url = array(
	'name'	=> 'xml_url',
	'id'	=> 'xml_url',
	'size'	=> 300,
	'value' => ''
);

$api_template = array(
	'id'	=> 'api_template_id',
	'name'	=> 'api_template_id'
);

?>
		        <div id="settings">
					<?php echo $prompt; ?>
		            <form method="POST" action="<?php echo site_url('show/addsite'); ?>">
		            	<dl>

							<dt><h4><?php echo form_label('网站名称', $site_name['id']);?></h4></dt>
							<dd>
								<?php echo form_input($site_name)?>
							</dd>

							<dt><h4><?php echo form_label('网站网址', $site_url['id']);?></h4></dt>
							<dd>
								<?php echo form_input($site_url);?>
							</dd>

							<dt><h4><?php echo form_label('API 地址', $xml_url['id']);?></h4></dt>
							<dd>
								<?php echo form_input($xml_url);?>
							</dd>

							<dt><h4><?php echo form_label('API 类型', $api_template['id']);?></h4></dt>
							<dd>
								<?php echo form_dropdown($api_template['id'], $template_map, 4);?>
							</dd>

						</dl>
		                <input type="submit" class="formbutton" value="提交" />
		            </form>
			    </div><!-- end #dashboard-body -->

		</div><!-- end #dashboard -->
	</div><!-- end #wrapper -->
	<div class='clear'></div>
   <?php require(dirname(dirname(__FILE__)).'/foot.php'); ?>
</div><!-- end #settings -->
